package com.xzx.study.drawable;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import com.xzx.study.R;

public class DrawableActivity extends AppCompatActivity implements View.OnClickListener {

    private Button drawable_matrix;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_drawable);
        drawable_matrix = findViewById(R.id.drawable_matrix);
        drawable_matrix.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (drawable_matrix == v) {
            startActivity(new Intent(this, MetrixActivity.class));
            return;
        }
    }
}
